<div id="menuitem-index">

        <div class="search">
                <a class="adds" href="__APP__/MenuItem/component/mid/<{$Think.get.mid}>">添加菜单项</a>
                <form action="__APP__/MenuItem/index/mid/<{$Think.get.mid}>" method="post" class="search">
                    关键字 <input type="text" name="key" /> 按
                    <select name="search">
                        <option value="2">菜单项名</option>
                        <option value="3">菜单项别名</option>
                    </select>
                    <empty name="list">
                        <input type="submit" value="搜索" disabled="disabled" />
                        <else />
                        <input type="submit" value="搜索" />
                    </empty>
                </form>
        </div>

        <form action="__APP__/MenuItem/del/mid/<{$Think.get.mid}>" method="post" name="delete" class="delete">
            <table>
                <thead>
                    <tr>
                        <th style="width:50px">ID</th>
                        <th style="width:400px;">菜单项名称</th>
                        <th style="width:100px;">菜单项别名</th>
                        <th style="width:150px;">菜单项类型</th>
                        <th style="width:50px;">排序</th>
                        <th style="width:100px;">是否发布</th>
                        <th style="width:100px;">打开方式</th>
                        <th class="action" style="width:50px;"><input class="allselect" type="button" value="全选" /></th>
                    </tr>
                </thead>
               <tbody>
                   <empty name="list">
                       <tr><td colspan="8" style="height:50px;">暂无数据</td></tr>
                       <else/>
                       <volist name="list" id="vo">
                           <tr>
                               <td><{$vo.id}></td>
                               <td style="text-align: left;">
                                       <{$vo.nbsp}>|--
                                       <a href="__APP__/MenuItem/edit/mid/<{$Think.get.mid}>/id/<{$vo.id}>" title="修改该菜单项信息">
                                           <{$vo.name}>
                                       </a>
                                       <span style="float: right;"><a href="__APP__/MenuItem/component/mid/<{$Think.get.mid}>/miid/<{$vo.id}>">重写地址</a></span>
                               </td>
                               <td><{$vo.alias}></td>
                               <td><{$vo.type}></td>
                               <td><{$vo.sort}></td>
                               <eq name="vo.publish" value="1">
                                        <td>已发布</td>
                                   <else/>
                                        <td>未发布</td>
                               </eq>
                               <eq name="vo.howopen" value="0">
                                   <td>本页面打开</td>
                                   <else/>
                                   <td>新页面打开</td>
                               </eq>
                               <td><input type="checkbox" name="actions[]" value="<{$vo.id}>" /></td>
                           </tr>
                       </volist>
                   </empty>
               </tbody>
                <tfoot>
                    <empty name="show">
                        <tr><td class="fpage" colspan="8">暂无数据</td></tr>
                        <else/>
                        <tr><td class="fpage" colspan="7"><{$show}></td><td><input class="buttondel" type="button" value="删除" /></td></tr>
                    </empty>
                </tfoot>
            </table>
        </form>
</div>
<script type="text/javascript" src="../Public/js/menuitem.js"></script>